package zuoye.zuoye3;

import java.util.HashSet;

public class Test {
    public static void main(String[] args) {
        double [] a = {2.2,5.5,6.6,2.2,8.8,1.1,2.2,8.8,5.5,2.2,6.6};
        HashSet<Double> hs = new HashSet<>();
        for (int i = 0; i < a.length; i++) {
            hs.add(a[i]);
        }
        System.out.println(hs);
    }
}
